feat: Add support for gifs in lexical#1873
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
* Add a button to insert a sample gif in the insert menu
* Add a sample gif
* Add gif icon
d7bc076 to
5a7e286
Compare
|
Thanks for this. How is it different from just using the gif URL on the insert image workflow though? |
@trueadm - I am working on a complete feature to introduce adding gifs to the editor using the GIPHY API, where we can have a modal that displays the gifs to be selected from. As suggested by @zurfyx I am raising the first PR to only add a hard-coded gif: |
|
That's awesome! Should we make the gif a bit smaller if we're planning to delete it later? It's 2MB that will sit in the git history forever |
|
Also, what I meant for the first PR is whether we can display the gif just like we'd use the Giphy API but no objections for this as a first PR :) |
3df89a7 to
d1a6164
Compare
|
@zurfyx - Optimised the gif! I will start work on the API integration from the next PR onwards! |
|
Maybe this can help? https://sergiop.github.io/react-giphy-searchbox/ |
|
Does this only add support for gifs in the playground and not as a plugin? |
Changelog:
Relates to - #1820
Screen recording:
gif-recording.mov